﻿using System.Reflection;
using System.IO;

namespace WCSFContrib.ECommerceCatalog.CatalogData {


    partial class CatalogDataSet
    {
        public static CatalogDataSet LoadData()
        {
            CatalogDataSet ds = new CatalogDataSet();

            Assembly currentAssembly = Assembly.GetExecutingAssembly();
            using (Stream dataStream = currentAssembly.GetManifestResourceStream("WCSFContrib.ECommerceCatalog.CatalogData.CatalogData.xml"))
            {
                ds.ReadXml(dataStream);
            }
            return ds;
        }
    }
}
